/*
 * COPYRIGHT. ShenZhen JiMi Technology Co., Ltd. 2017.
 * ALL RIGHTS RESERVED.
 *
 * No part of this publication may be reproduced, stored in a retrieval system, or transmitted,
 * on any form or by any means, electronic, mechanical, photocopying, recording, 
 * or otherwise, without the prior written permission of ShenZhen JiMi Network Technology Co., Ltd.
 *
 * Amendment History:
 * 
 * Date                   By              Description
 * -------------------    -----------     -------------------------------------------
 * 2017年7月6日    Li.Shangzhi         Create the class
 * http://www.jimilab.com/
 */

package com.jimi.api.pay.vo;

import java.math.BigDecimal;
import java.util.Date;

import com.jimi.commons.DatetimeUtil;

/**
 * @FileName PayInfoVo.java
 * @Description:
 *
 * @Date 2017年7月6日 下午4:32:03
 * @author Li.Shangzhi
 * @version 1.0
 */
public class PayInfoVo {

	/**
	 * id
	 */
	private String id;
	/**
	 * 交易号
	 */
	private String tradeNo;
	/**
	 * 交易类型（1-imei续费、2-流量卡充值）
	 */
	private Integer tradeType;
	/**
	 * 充值人
	 */
	private String userId;
	/**
	 * 支付方式 （0.微信 1.支付宝）
	 */
	private Integer payMethod;
	/**
	 * 商品详情
	 */
	private String productDetail;
	/**
	 * 交易状态(0 未支付 1 已支付)
	 */
	private Integer status;
	/**
	 * 支付金额
	 */
	private BigDecimal amount;
	/**
	 * 支付时间
	 */
	private Date payTime;
	/**
	 * 标记号
	 */
	private Integer markNum;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getTradeNo() {
		return tradeNo;
	}

	public void setTradeNo(String tradeNo) {
		this.tradeNo = tradeNo;
	}

	public Integer getTradeType() {
		return tradeType;
	}

	public void setTradeType(Integer tradeType) {
		this.tradeType = tradeType;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public Integer getPayMethod() {
		return payMethod;
	}

	public void setPayMethod(Integer payMethod) {
		this.payMethod = payMethod;
	}

	public String getProductDetail() {
		return productDetail;
	}

	public void setProductDetail(String productDetail) {
		this.productDetail = productDetail;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public BigDecimal getAmount() {
		return amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public String getPayTime() {
		if (this.payTime == null) {
			return null;
		}
		return DatetimeUtil.DateToString(this.payTime, DatetimeUtil.LONG_DATE_TIME_PATTERN);
	}
	public void setMarkNum(Integer markNum) {
		markNum = markNum == null ? 0 : markNum;
		this.markNum = markNum;
	}

	public Integer getMarkNum() {
		return this.markNum == null ? 0 : this.markNum;
	}
	public void setPayTime(Date payTime) {
		this.payTime = payTime;
	}
}
